package com.ark.yygh.cmn.service;

import com.ark.yygh.model.cmn.Dict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface DictService extends IService<Dict> {
    //根据id查询子数据列表
    List<Dict> findChildrenData(Long id);

    //数据字典导出
    void exportData(HttpServletResponse response);
    //数据字典导入
    void importData(MultipartFile file);

    //根据dictcode和value查询DictName
    String getDictName(String dictCode, String value);
    //根据dictCode获取下级节点
    List<Dict> findByDictCode(String dictCode);


}
